﻿@model _5._6._2015CSharpDay08FullCRUDSingleton.Models.Movie
<h2>@ViewBag.Message</h2>
<form method="post">
    <!----Make sure you put method as post to edit not action-->
    <div class="well">
        @Html.LabelFor(x => x.Title)
        @Html.TextBoxFor(x => x.Title, new { @class = "form-control" })
        <br />
        <br />
        @Html.LabelFor(x => x.MovieUrl)
        @Html.TextBoxFor(x => x.MovieUrl, new { @class = "form-control" })
        <br />
        <br />
        @Html.LabelFor(x => x.Genre)
        @Html.EnumDropDownListFor(x => x.Genre, new { @class = "form-control" })
        <br />
        <br />
        <button type="submit" class="btn btn-warning">Submit</button>
    </div>
    @Html.HiddenFor(x => x.Id)
</form>